﻿<link href="/Common/layim/dist/css/layui.css" rel="stylesheet" />
<link href="/Common/bootstrap/css/font-awesome.min.css" rel="stylesheet" />
<link href="/Common/bootstrap/css/font-awesome.css" rel="stylesheet" />
<link href="/Common/layim/layui_exts/css/winui.css" rel="stylesheet" />
<!--<a href="javascript:;" onclick="addFlow(); return false;" class="layui-btn layui-btn-sm ng-scope">新建</a>-->
<a href="javascript:;" onclick=" workflow.flowAttrSetting(); return false;" class="layui-btn layui-btn-sm ng-scope"> 属性</a>
<a href="javascript:;" onclick=" workflow.addStep(); return false;" class="layui-btn layui-btn-sm ng-scope"> 步骤</a>
<a href="javascript:;" onclick=" workflow.addSubFlow(); return false;" class="layui-btn layui-btn-sm ng-scope"> 子流程</a>
<a href="javascript:;" onclick=" workflow.addConn(); return false;" class="layui-btn layui-btn-sm ng-scope">  连线</a>
<a href="javascript:;" onclick=" workflow.copyStep(); return false;" class="layui-btn layui-btn-sm ng-scope"> 复制</a>
<a href="javascript:;" onclick=" workflow.removeObj(); return false;" title="删除当前选定对象" class="layui-btn layui-btn-sm ng-scope">  删除对象</a>
<a href="javascript:;" onclick=" workflow.saveFlow('save'); return false;" class="layui-btn layui-btn-sm ng-scope"> 保存</a>
<!--<a href="javascript:;" onclick="saveAs(); return false;" class="layui-btn layui-btn-sm ng-scope"> 另存为</a>-->
<a href="javascript:;" onclick=" workflow.saveFlow('install'); return false;" class="layui-btn layui-btn-sm ng-scope"> 安装</a>
<a href="javascript:;" onclick=" workflow.saveFlow('uninstall'); return false;" class="layui-btn layui-btn-sm ng-scope"> 卸载</a>
<a href="javascript:;" onclick=" workflow.saveFlow('delete'); return false;" title="删除流程" class="layui-btn layui-btn-sm ng-scope">删除流程</a>
<script src="Common/oa/js/draw-min.js"></script>
<script src="Common/oa/js/workflow.js"></script>
<div id="flowdiv" style="margin:0; padding:0;"></div>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script src="/Common/layim/dist/layui.all.js"></script>
<script>
    var $ = null;
    layui.config({
        base: '/Common/layim/layui_exts/' //指定 winui 路径
        , version: '1.0.0-beta'
    }).use(['layer', 'element', 'form', 'laydate', 'common', 'workflow'], function (exports) {
        // layui.use(['layer', 'element', 'form', 'laydate'], function () {
        layer = layui.layer, element = layui.element, form = layui.form, $ = layui.$, common = layui.common, workflow = layui.workflow;
        var key = common.getRequest().key;

        if (key != null) {
            workflow.openFlow1(key);
        }
        else window.location.href = "/Page/WorkFlowDesigner/WorkFlowList.html";

    });
</script>
<div include="page/WorkFlowDesigner/sub/flowadd.html"></div>
<div include="page/WorkFlowDesigner/sub/setstep.htm"></div>